﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.BaseInformation
{
    /// <summary>
    /// 产线不良信息模板
    /// </summary>
	[Table("LMESBadCodeTemplates")]
    [SoftKey(nameof(LMESBadCodeTemplate.LMESBadCode))]
    [Display(Name = "_Model.LMESBadCodeTemplate")]
    public class LMESBadCodeTemplate : TopBasePoco,IPersistPoco
    {
        [Display(Name = "_Model._LMESBadCodeTemplate._AddTime")]
        [Comment("添加时间")]
        public DateTime? AddTime { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._BadCode")]
        [Comment("不良编码")]
        public string BadCode { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._BadName")]
        [Comment("不良名称")]
        public string BadName { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._BadTypeCode")]
        [Comment("不良类型编码")]
        public string BadTypeCode { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._BadTypeName")]
        [Comment("不良类型名称")]
        public string BadTypeName { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._DataStatus")]
        [Comment("数据状态")]
        public string DataStatus { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._EditTime")]
        [Comment("编辑时间")]
        public DateTime? EditTime { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._EnableStatus")]
        [Comment("启用状态")]
        public string EnableStatus { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._FactoryCode")]
        [Comment("工厂编码")]
        public string FactoryCode { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._Field1")]
        [Comment("预留域1")]
        public string Field1 { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._Field2")]
        [Comment("预留域2")]
        public string Field2 { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._Field3")]
        [Comment("预留域3")]
        public string Field3 { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._Field4")]
        [Comment("预留域4")]
        public string Field4 { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._Field5")]
        [Comment("预留域5")]
        public string Field5 { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._OperationCode")]
        [Comment("工序信息")]
        public string OperationCode { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._LMESBadCode")]
        [Comment("产线不良信息编号")]
        [Required(ErrorMessage = "Validate.{0}required")]
        [CanNotEdit]
        public string LMESBadCode { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._LMESBadDescription")]
        [Comment("产线不良信息描述")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string LMESBadDescription { get; set; }
        [Display(Name = "_Model._LMESBadCodeTemplate._IsValid")]
        [Comment("是否有效")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public bool IsValid { get; set; } = true;

	}

}
